package org.apache.log4j.solon.integration;

import java.util.Hashtable;

import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.NoPermissionException;
import javax.naming.spi.InitialContextFactory;

public class NoPermissionsInitialContextFactory implements InitialContextFactory{

	@Override
	public Context getInitialContext(Hashtable<?, ?> environment) throws NamingException {
		throw new NoPermissionException("JNDI is disabled!");
	}

}
